const app={
    state: {
        users:null
    },
    mutations: {
        USER_DATA:(state:any,data:any)=>{
            state.users=data.result
        }
    },
    actions: {
        user:({commit}:any,a:any)=>{
            return new Promise((resolve,reject)=>{
                commit('USER_DATA',a)
                resolve()
            })
        }
    },
}

export default app